package com.ktkj.init.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class PermissionInfoForm {

    @NotBlank(message = "权限编号不能为空！")
    @ApiModelProperty(value = "权限编号", example = "")
    private String permissionCode;

    @NotBlank(message = "权限名称号不能为空！")
    @ApiModelProperty(value = "权限名称", example = "")
    private String permissionName;

    @NotBlank(message = "权限URL不能为空！")
    @ApiModelProperty(value = "权限URL", example = "")
    private String permissionUrl;

    @NotNull(message = "父id不能为空！")
    @ApiModelProperty(value = "父id（一级菜单值为0）", example = "1")
    private Long parentId;

    @ApiModelProperty(value = "id(修改时必须输入)", example = "1")
    private Long id;

}
